def steps(M,N):
    if M == 0:
        return N
    k = 1
    while True:
        if k * N >= M:
            return k*N
        k += 1

import unittest
class TestSteps(unittest.TestCase):
    def test_steps(self):
        M,N = 0,5
        self.assertEqual(steps(M,N),5)
        M, N = 1, 5
        self.assertEqual(steps(M, N), 5)
        M, N = 10, 5
        self.assertEqual(steps(M, N), 10)
        M, N = 6, 5
        self.assertEqual(steps(M, N), 10)

if __name__ == '__main__':
    unittest.main()